//
//  AIUnitySendMsgTool.m
//  MiaMind
//
//  Created by Vill on 2023/12/13.
//

#import "AIUnitySendMsgTool.h"


//extern "C"{
//    void UnitySendMessage(const char* obj, const char* method, const char* msg);
//
////    void SelectPlayer(int index);
////    void PlayerTalk(const char *str);
////    void PlayTalkEnd();   //3.角色停止对话
////    void FarPlayer();     //4.拉远角色
////    void NearPlayer();    //5.拉近角色
//}


@implementation AIUnitySendMsgTool

// 在 iOS 中调用 Unity 方法
- (void)callUnityMethod:(NSString*)method with:(NSArray*)param{
    // 将参数数组转换为字符串
    NSString *unityObjectName = @"IOSBridge";
    NSString *parameters = [param componentsJoinedByString:@","];
//    UnitySendMessage([unityObjectName UTF8String], [method UTF8String], [parameters UTF8String]);
    
    
}

@end


